package ${basepackage}.model.criteria.${databaseNameCamel};

import java.util.Date;

import org.apache.ibatis.type.Alias;

import com.excalibur.core.model.BaseObject;

/**
 * @author "Jiance Qin"
 * 
 * @date 2014年2月24日
 * 
 * @time 下午12:00:07
 * 
 */
@Alias("${table.unCapGenerateClassName}Criteria")
public class ${table.generateClassName}Criteria extends BaseObject {

	private static final long serialVersionUID = 1L;

    <#list table.columns as column>
    <#if column.type == "Date">
	private ${column.type} start${column.name};
	private ${column.type} end${column.name};
    <#else>
    private ${column.type} ${column.name?uncap_first};
    </#if>
    </#list>
	private String sort;
	private String order;

    <#list table.columns as column>
    <#if column.type == "Date">
    public ${column.type} getStart${column.name}() {
        return start${column.name};
    }
    public void setStart${column.name}(${column.type} start${column.name}) {
        this.start${column.name} = start${column.name};
    }
    public ${column.type} getEnd${column.name}() {
        return end${column.name};
    }
    public void setEnd${column.name}(${column.type} end${column.name}) {
        this.end${column.name} = end${column.name};
    }
    <#else>
    public ${column.type} get${column.name}() {
        return ${column.name?uncap_first};
    }
    public void set${column.name}(${column.type} ${column.name?uncap_first}) {
        this.${column.name?uncap_first} = ${column.name?uncap_first};
    }
    </#if>
    </#list>
    
    public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}
	
    public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}
	
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
}
